package com.study.prop.other;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = {"classpath:test.yml"})
//@ConfigurationProperties(prefix = "user")
@Data
public class TestYml {

    private String name;

    private Integer age;

    private String sex;
}
